//
//  PublicMethod.m
//  DLBaseProject
//
//  Created by xiedonglai on 2021/7/27.
//  Copyright © 2021 XDL. All rights reserved.
//

#import "PublicMethod.h"

@implementation PublicMethod

//生成uuid
+ (NSString *)uuid{
   // create a new UUID which you own
   CFUUIDRef uuidref = CFUUIDCreate(kCFAllocatorDefault);
   // create a new CFStringRef (toll-free bridged to NSString)
   // that you own
   CFStringRef uuid = CFUUIDCreateString(kCFAllocatorDefault, uuidref);
   NSString *result = (__bridge NSString *)uuid;
   //release the uuidref
   CFRelease(uuidref);
   // release the UUID
   CFRelease(uuid);
    return result;
}


@end
